package com.lanchetech.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 绑定商品表
 */
@ApiModel(value="com.lanchetech.entity.ActivityBindSpu")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "activity_bind_spu")
public class ActivityBindSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value="id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 活动id
     */
    @ApiModelProperty(value="活动id")
    private Long activityId;

    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private Long spuId;

    /**
     * 商品规格id
     */
    @ApiModelProperty(value="商品规格id")
    private Long skuId;

    /**
     * 新人价格
     */
    @ApiModelProperty(value="新人价格")
    private BigDecimal newPrice;

    /**
     * 活动库存数
     */
    @ApiModelProperty(value = "活动库存数")
    private Integer activityStock;

    /**
     * 是否解绑 1是 0否
     */
    @ApiModelProperty(value="是否解绑 1是 0否")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private Date createdAt;

    public static final String COL_ID = "id";

    public static final String COL_ACTIVITY_ID = "activity_id";

    public static final String COL_SPU_ID = "spu_id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_NEW_PRICE = "new_price";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATED_AT = "created_at";
}